<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
	<div class="container">
		<a href="<?=url('Index/index')?>" class="navbar-brand">
			MyApi
		</a>
		<div class="collapse navbar-collapse" id="navbarNavDropdown">
			<ul class="navbar-nav mr-auto">
				<li class="nav-item active">
					<a class="nav-link" href="<?=url('Index/index')?>">首页 <span class="sr-only">(current)</span></a>
				</li>
				<li class="nav-item dropdown">
					<a class="nav-link dropdown-toggle" href="javascript:void(0);" id="project_type" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
						项目管理
					</a>
					<div class="dropdown-menu" aria-labelledby="project_type">
						<a class="dropdown-item" href="<?=url('Index/index',['type'=>'create'])?>">我创建的</a>
						<a class="dropdown-item" href="<?=url('Index/index',['type'=>'join'])?>">我加入的</a>
					</div>
				</li>
				<li class="nav-item">
					<a class="nav-link" href="<?=url('Index/add')?>">+创建项目</a>
				</li>
				<li class="nav-item">
					<form action="<?=url('Index/index')?>" method="get" class="search_box">
						<input type="hidden" name="type" value="<?=input('type')?>">
						<input class="form-control" type="text" name="search" placeholder="Search">
					</form>
				</li>
			</ul>
		</div>
		<?php
			if(session("member_id")){
		?>
		<div class="logout">
			<a href="javascript:void(0);" data-toggle="modal" data-target="#profile">修改密码</a>
			<a href="<?=url('Account/logout')?>">退出登录</a>
		</div>
		<?php
			}
		?>
	</div>
</nav>